<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<div style="padding:15px 30px">
	<form id="drugForm" method="post">
		<input type="hidden" name="id" />
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" name="name" style="width:91%" data-options="label:'Name:',required:true,missingMessage:'用户名必须填写'">
        </div>
		<div style="margin-bottom:20px">
			    <input id="unit" class="easyui-combobox" name="unit.id" style="width:95%;" data-options=" 
			      url:'dictionary/selectValueByKey', 
			      method:'get', 
			      valueField:'id', 
			      textField:'value', 
			      panelheight:'auto',
			      label: '单位', 
			      labelposition: 'top',
			      queryParams: { key: 'yaodanwei' }
			      "> 
		</div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" name="price" style="width:95%" data-options="label:'price:',required:true,missingMessage:'价格必须填写'">
        </div>
		<div style="margin-bottom:20px">
			    <input id="type" class="easyui-combobox" name="type.id" style="width:95%;" data-options=" 
			      url:'dictionary/selectValueByKey', 
			      method:'get', 
			      valueField:'id', 
			      textField:'value', 
			      panelheight:'auto',
			      label: '类型', 
			      labelposition: 'top',
			      queryParams: { key: 'yaotype' }
			      ">
        	    
        </div>
		<div style="margin-bottom:20px">
		    <input class="easyui-datebox" label="Date:" data-options="validType:'shiftDate'" name="overdueDate" labelPosition="left" style="width:80%;">
		</div>
		<div style="margin-bottom:20px">
            <input class="easyui-textbox" name="number" style="width:95%" data-options="label:'number:',required:true">
        </div>
        <div style="margin-bottom:20px">
            <input class="easyui-textbox" name="dosageDescribe" style="width:95%" data-options="label:'用量:',required:true">
        </div>
		<div style="margin-bottom:20px">
            <input class="easyui-textbox" name="abbreviation" style="width:95%" data-options="label:'abbreviation:',required:true">
        </div>
		<div style="margin-bottom:20px">
            <input class="easyui-textbox" name="state" style="width:95%" data-options="label:'state:',required:true">
        </div>
	</form>
</div>
</body>
</html>